<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta content="width=device-width,user-scalable=no"name="viewport">
<title>购买会员二维码</title>
<link rel="stylesheet" type="text/css" href="{:C('WEB_URL')}Public/business/style/base.css" />
<link rel="stylesheet" type="text/css" href="{:C('WEB_URL')}Public/business/style/style.css" />
<link rel="stylesheet" type="text/css" href="{:C('WEB_URL')}Public/business/style/bootstrap.min.css" />
<script type="text/javascript" charset="UTF-8" src="{:C('WEB_URL')}Public/business/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="{:C('WEB_URL')}Public/business/js/bootstrap.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="{:C('WEB_URL')}Public/business/js/script.js"></script>
<script type="text/javascript" charset="UTF-8" src="{:C('WEB_URL')}Public/business/js/jQuery.textSlider.js" /></script>
</head>
<body>
<div id="box">
 <div class="navbar navbar-default navbar-fixed-top">
  <header>
   <h1><a href="index.html"><span class="glyphicon glyphicon-menu-left"></span></a></h1>
   <p class="title">购买会员二维码</p>
  </header>
 </div><!--navbar-fixed-top-->
 <div class="payErwei">
  <!--<h3><span class="glyphicon glyphicon-menu-left"></span></h3>-->
  <div class="payEr">
   <p>NO.{$data['coupon_id']}</p>
   <h1><img src="{:C('WEB_URL')}{$data['erwei']}" /></h1>
   <!--<h5><img src="images/erwei_03.jpg" />点我刷新试试</h5>-->
   <div id="scrollDiv">
   <div class="scrollText">
    <ul style="margin-top: 0px; ">
     <!--<li>点我刷新试试</li>
  	 <li>刷新时间2017-04-11</li>  -->
    </ul>
   </div>
   <!--<div class="up"><img src="{:C('WEB_URL')}Public/business/images/erwei_03.jpg" /></div>-->
  </div>
   <p class="use">扫一扫即刻购买</p>
  </div>
 </div><!--erweima-->
 <if condition="$list2.purview eq 0">
  <div class="navbar navbar-default navbar-fixed-bottom">	
   <footer id='foot'>
    <dl>
     <dt><a href="index.html"><img src="{:C('WEB_URL')}Public/business/images/home.png" /></a></dt>
     <dd><a href="index.html" class="current">首页</a></dd>
    </dl>
    <dl>
     <dt><a href="pullrefresh_sub.html"><img src="{:C('WEB_URL')}Public/business/images/deal_07.jpg" /></a></dt>
     <dd><a href="pullrefresh_sub.html">员工管理</a></dd>
    </dl>
    <dl>
     <dt><a href="manage.html"><img src="{:C('WEB_URL')}Public/business/images/deal_09.jpg" /></a></dt>
     <dd><a href="manage.html">会员管理</a></dd>
    </dl>
   </footer>
   
  </div><!--/navbar-->
 	<else />
    </if>
</div><!--box-->
<script type="text/javascript">
//最下面点击效果
$('#foot dl').on("touchstart",function(){
  // alert(1);
  $('#foot dl').css("background-color","#fff")
  $(this).css("background-color","#ddd")
})
$('#foot dl').on("touchend",function(){
  // alert(1);
  $('#foot dl').css("background-color","#fff")

})
//微信判断header是否显示
if(isWeiXin()){ 
//alert("====");
$(".title").hide();
} 
else{
//alert("+++++");
}	

//文字上下滚动
$(document).ready(function(){
    $("#scrollDiv").textSlider({line:1,speed:500,timer:3000});
});
//文字上下滚动End

  function demo(){
    $.ajax({
    type:"post",
    url:"index_ajax",
    async:false,
    success: function(data){
    	
      if(data['status']==1){
    	  
        location.href = "http://www.nleaves.com/qinqin/wechat/business/success/uid/"+data['uid']+"/sid/"+data['bid']+"/status/"+data['status']+"/cid/"+data['cid'];
      //   alert("http://www.nleaves.com/qinqin/wechat/user/wypj/uid/"+data['uid']+"/sid/"+data['bid']);
      }
    }
  })
  }
demo();
var sh;sh=setInterval(demo,800);
</script>
</body>
</html>
